package package_principal;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.BoxLayout;
import javax.swing.JLayeredPane;
import java.awt.Component;
import javax.swing.JButton;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.border.LineBorder;

import package_gestColis.Colis;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.SwingConstants;

public class StationIHM extends JFrame {

	private JPanel contentPane;
	private int IDStation;
	private int IDZone;
	private int IDRegion;
	
	/**
	 * Create the frame.
	 */
	public StationIHM() {
		setTitle("Station");
		
		// Frame define
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 1024, 768);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		// Station infos define
		
		JPanel pnl_infos = new JPanel();
		contentPane.add(pnl_infos, BorderLayout.NORTH);
		pnl_infos.setLayout(new GridLayout(2, 3, 0, 0));
		
		JLabel lbl_Station = new JLabel("Numero Station");
		pnl_infos.add(lbl_Station);
		
		JLabel lbl_Zone = new JLabel("Numero Zone");
		pnl_infos.add(lbl_Zone);
		
		JLabel lbl_Region = new JLabel("Numero Region");
		pnl_infos.add(lbl_Region);
		
		JLabel lbl_setStation = new JLabel("01");
		lbl_setStation.setBackground(Color.WHITE);
		pnl_infos.add(lbl_setStation);
		
		JLabel lbl_setZone = new JLabel("04");
		lbl_setZone.setBackground(Color.WHITE);
		pnl_infos.add(lbl_setZone);
		
		JLabel lbl_setRegion = new JLabel("HG");
		lbl_setRegion.setBackground(Color.WHITE);
		pnl_infos.add(lbl_setRegion);
		
		// Casier define
		
		CasierBox pnl_casiers = new CasierBox();
		contentPane.add(pnl_casiers, BorderLayout.SOUTH);
		
		UserBox pnl_login = new UserBox();
		contentPane.add(pnl_login, BorderLayout.WEST);
		
		//Uncomment to show second panel
		//contentPane.add(pnl_colis, BorderLayout.CENTER);
	}
	
}
